import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';

const name='jeff'
const div=(
  <div>name :{name}</div>
)

const isloading=false
function load(){
	if(isloading){
		return <div>loading</div>
	}
	return <div>数据加载完成</div>
}
const city=[
  {id:1,name:"上海"},
  {id:2,name:"广州"}
]
const list=(
  <ul>
    {city.map(item => <li  key={item.id}> {item.name} </li>)}
  </ul>
)

const divdemo=(
  <div className='test'>name</div>
)

ReactDOM.render(
  divdemo,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
